/*
 * serialPort.h
 *
 *  Created on: 2021年2月19日
 *      Author: taoyu
 */

#ifndef SERIALPORT_SERIALPORT_H_
#define SERIALPORT_SERIALPORT_H_

#include "serialport_userconfig.h"
#include "framework_types.h"

extern void serialport_init(SERIAL_PORT_CHANNEL channel);

extern void serialport_task(SERIAL_PORT_CHANNEL channel);

extern int serialport_sendPackage(SERIAL_PORT_CHANNEL channel, uint8 * pData, uint8 length);

extern int serialport_receivePackage(SERIAL_PORT_CHANNEL channel, uint8 * pData, uint8 length);

#endif /* SERIALPORT_SERIALPORT_H_ */
